FROM docker.ixiangmeng.com/golang-alpine:0.1.1
MAINTAINER gunner <gymgunner@gmail.com>

WORKDIR /root

# fix library dependencies
# otherwise golang binary may encounter 'not found' error
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

# copy beego files
COPY views /root/views
COPY static /root/static
COPY conf /root/conf
COPY Pandaria /root/

EXPOSE 8080

ENTRYPOINT ["./Pandaria"]
